package bupt.party.online.dao;

import java.util.List;
import java.util.Set;

import bupt.party.online.model.PartyNews;

public interface IPartyNewsDao {
	public boolean saveOrUpdate(PartyNews bean);
	public boolean delete(PartyNews bean);
	public List<PartyNews> findBySql(String sql);
	
	public int getResultCountByTag(int tag);
	
	public List<PartyNews> getResultsByPage(int tag,int firstResult,int pageSize);
	
	public List<PartyNews> QueryByConditions(String queryString , Object[]values,int firstResult,int pageSize);

	public int getResultCount(String countSql,Object[] queryValues);
	
	public boolean deleteNewsById(int id);
	
	public List<PartyNews> findCollegeNews(String queryOnTitle,Set<Integer> branchIds,int firstResult,int maxResults);
	
	public int getCollegeNewsCount(String queryString,Set<Integer> branchIds);
}
